import request from '@/utils/request'

/**
 * 新增退款订单记录表
 * @param {Object} data 对象参数
 */
export function addRefundOrder(data) {
	return request({
		url: '/api/refundOrder/addRefundOrder',
		method: 'post',
		data: data
	})
}

/**
 * 修改退款订单记录表
 * @param {Object} data 对象参数
 */
export function editRefundOrder(data) {
	return request({
		url: '/api/refundOrder/editRefundOrder',
		method: 'post',
		data: data
	})
}

/**
 * 删除退款订单记录表
 * @param {Object} id 主键编号
 */
export function deletRefundOrder(id) {
	return request({
		url: '/api/refundOrder/deletRefundOrder/' + id,
		method: 'post',
	})
}

/**
 * 查询退款订单记录表列表
 * @param {Object} param 查询对象
 */
export function findRefundOrderList(param) {
	return request({
		url: '/api/refundOrder/findRefundOrderList',
		method: 'get',
		param: param
	})
}

/**
 * 查询退款订单记录表详情
 * @param {Object} id 主键编号
 */
export function findRefundOrderDetail(id) {
	return request({
		url: '/api/refundOrder/findRefundOrderDetail/' + id,
		method: 'get',
	})
}
